Variables and Constants
Introduction
In arithmetic, you work mostly with specific numbers like $3$, $12$, or $100$.
In algebra, we often don’t know a number yet — but we still want to talk about it, reason about it, or compute with it.
To do this, we use letters.
This article introduces:
- What variables are
- What constants are
- Why letters are useful
- How to read simple algebraic expressions
- How this prepares you for later articles on writing and evaluating expressions
Why Use Letters in Mathematics?
Letters allow us to:
- Represent numbers we don’t know yet
- Describe patterns and general rules
- Write formulas that work for many situations
- Avoid repeating long explanations
Examples:
- “A number increased by $5$” can be written as $x + 5$
- “Twice a number” becomes $2x$
- “The cost of $n$ tickets at £4 each” becomes $4n$
Letters make ideas shorter, clearer, and more flexible.
Variables
A variable is a letter that stands for a number that can change or is unknown.
Common variable letters:
Key ideas:
- A variable is a placeholder for a number.
- The value might be unknown, or it might vary from one situation to another.
- Variables let us write general statements like “the area of a square is $s^2$”.
Examples:
- If $x$ represents “a number”, then $x + 3$ means “that number plus $3$”.
- If $t$ represents time in seconds, then $5t$ means “five times the number of seconds”.
Constants
A constant is a number that does not change.
Examples:
- $2$, $10$, $-7$, $0.5$
- In the expression $3x + 4$, the number $4$ is a constant.
- In the formula for the area of a circle, $A = \pi r^2$, the number $\pi$ is a constant.
Key points:
- Constants stay the same.
- Variables may change.
- Expressions often mix both.
Combining Variables and Constants
When we combine variables and constants using arithmetic operations, we create algebraic expressions.
Examples:
- $x + 7$
- $2n - 3$
- $5t$
- $10 + k$
Important notes:
- Writing $5x$ means $5 \times x$.
- We usually omit the multiplication symbol when multiplying a number and a variable.
- Expressions are not equations — they don’t have an equals sign.
Simple Examples
Here are some everyday situations and how variables help describe them:
| Situation | Expression | Explanation |
|---|
| A number increased by $2$ | $x + 2$ | $x$ stands for the number |
| The total cost of $n$ apples at £3 each | $3n$ | Multiply price by quantity |
| A temperature $t$ degrees warmer than $5$ | $t + 5$ | $t$ is the unknown temperature |
| Half of a number $k$ | $\frac{k}{2}$ | Divide by $2$ |
Exercises
- Write “a number increased by $4$” using a variable.
- If $n$ is the number of books you buy, and each book costs £6, write an expression for the total cost.
- Write an expression for “twice a number minus $3$”.
- If $t$ represents time in minutes, write an expression for “$5$ minutes more than $t$”.
- A rectangle has width $w$. Write an expression for its perimeter if the length is $10$.
- Write an expression for “half of a number $k$ plus $1$”.
- If $m$ is the number of miles you walk, and each mile burns $80$ calories, write an expression for total calories burned.
- Write “a number decreased by $9$” using a variable.